package my.wudm.yummy.controller;


import my.wudm.yummy.Service.IBiquService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping("/")
public class IndexController {

    @Resource
    IBiquService iBiquService;

    @RequestMapping("")
    public Object index(Model model){
        model.addAttribute("catalog", iBiquService.getCatalog("http://www.biquyun.com/18_18698/"));
        return "index";
    }
}
